﻿<%@ Page language="c#" Codebehind="ListDocument.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.DocumentFlow.ListDocument" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<meta name="author" content="Herry" />
<meta name="Copyright" content="Copyright (c) 2009 himm.cn" />
<title>ListDocument</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" href="/css/other.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/css/table.css" />
</head>
<body>
		<form id="ListDocument" method="post" runat="server">
<div class="m">
    <div class="path"><a href="/SubModule/UnitiveDocument/Desktop.aspx">我的桌面</a> >> 文档流转</div>
    <div class="con">
    <div class="tabnav">
        <p class="tabnavhead"> 
        <span id="bar1" class="<%Response.Write(GetSelectImage("active1","active2",DisplayType,1));%> tnc">
        <asp:linkbutton id="lbMyApprove" runat="server">我的批阅</asp:linkbutton>
        </span>
        <span id="bar2" class="<%Response.Write(GetSelectImage("active1","active2",DisplayType,2));%> tnc">
        <asp:linkbutton id="lbMyDocument" runat="server">我的申请</asp:linkbutton>
        </span>
        <span id="bar3" class="<%Response.Write(GetSelectImage("active1","active2",DisplayType,3));%> tnc">
        <asp:linkbutton id="lbMyApproved" runat="server">已经批阅</asp:linkbutton>
        </span>
        <span id="bar4" class="active1 tnc">
        <asp:linkbutton id="lbMyDraft" runat="server" >拟稿箱</asp:linkbutton>
        </span>
        <%if(bManageFlow==true){%>
        <span id="bar5" class="active1 tnc">
        <asp:linkbutton id="lbManageFlow" runat="server" >流程管理</asp:linkbutton>
        </span>
        <%}%>

        </p>
      </div>
        <asp:datagrid id="dgDocumentList" runat="server" PageSize="15" CellPadding="3"
            BorderWidth="1px" BorderStyle="None" BorderColor="#337FB2" BackColor="White" OnPageIndexChanged="DataGrid_PageChanged"
            AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" Width="100%">
            <SelectedItemStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999"></SelectedItemStyle>
            <AlternatingItemStyle HorizontalAlign="Center" BackColor="#E8F4FF"></AlternatingItemStyle>
            <ItemStyle HorizontalAlign="Center" ForeColor="#003399" BackColor="White"></ItemStyle>
            <HeaderStyle HorizontalAlign="Center" ForeColor="White" VerticalAlign="Middle" BackColor="#337FB2"></HeaderStyle>
            <FooterStyle ForeColor="#003399" BackColor="#99CCCC"></FooterStyle>
            <Columns>
                <asp:TemplateColumn HeaderText="ID">
                    <HeaderStyle Width="2%"></HeaderStyle>
                    <ItemTemplate>
                        <asp:CheckBox id="Flow_ID" runat="server"></asp:CheckBox>
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText="文档标题">
                    <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Left"></ItemStyle>
                    <ItemTemplate>
                        <asp:HyperLink runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Title") %>' NavigateUrl='<%# GetDisplayDocumentUrl(DataBinder.Eval(Container, "DataItem.Doc_ID").ToString())%>'>
                        </asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:BoundColumn DataField="DocBuilder" HeaderText="拟稿人">
                    <HeaderStyle Width="10%"></HeaderStyle>
                </asp:BoundColumn>
                <asp:HyperLinkColumn DataNavigateUrlField="FLOW_ID" DataNavigateUrlFormatString="DisplayFlow.aspx?FlowID={0}"
                    DataTextField="FlowName" HeaderText="流程名">
                    <HeaderStyle HorizontalAlign="Center" Width="20%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:HyperLinkColumn>
                <asp:TemplateColumn HeaderText="当前环节">
                    <ItemTemplate>
                        <asp:HyperLink runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.StepName") %>' NavigateUrl='<%#GetDisplayTacheMemberUrl(DataBinder.Eval(Container, "DataItem.Doc_ID").ToString()) %>'>
                        </asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:BoundColumn DataField="Short_Doc_Added_Date" HeaderText="拟稿时间">
                    <HeaderStyle Width="13%"></HeaderStyle>
                </asp:BoundColumn>
                <asp:BoundColumn DataField="Status" HeaderText="状态">
                    <HeaderStyle HorizontalAlign="Center" Width="8%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundColumn>
            </Columns>
            <PagerStyle NextPageText="" HorizontalAlign="Right" ForeColor="#003399"
                BackColor="#E8F4FF" Mode="NumericPages"></PagerStyle>
        </asp:datagrid>
    </div>
  </div>
</form>
</body>
</html>